package com.ljs.spring_fastdfs.service.impl;

import com.ljs.spring_fastdfs.bean.TUser;
import com.ljs.spring_fastdfs.mapper.TUserMapper;
import com.ljs.spring_fastdfs.service.TuserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TuserServiceImpl implements TuserService {
    @Resource
    TUserMapper tUserMapper;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tUserMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TUser record) {
        return tUserMapper.insert(record);
    }

    @Override
    public int insertSelective(TUser record) {
        return tUserMapper.insertSelective(record);
    }

    @Override
    public TUser selectByPrimaryKey(Integer id) {
        return tUserMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TUser record) {
        return tUserMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TUser record) {
        return tUserMapper.updateByPrimaryKey(record);
    }

    @Override
    public TUser loginbyname(String name) {
        return tUserMapper.loginbyname(name);
    }
}
